package com.daka.dao;

import com.daka.entity.WelfareItem;
import com.daka.mybatis.SQLMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author beliveli on 2016/7/4/0004
 */
@Repository(value = "welfareItemMapper")
@SQLMapper
public interface WelfareItemMapper {

    WelfareItem selectById(Long id);

    List<WelfareItem> selectByWelfareId(@Param("id") Long id, @Param("code") String code);

    int insertBatch(List<WelfareItem> welfareItemList);

    int updateById(WelfareItem welfareItem);
}
